using System;
using System.Collections.Generic;
using Main.Details;
using UnityEngine;

[CreateAssetMenu(fileName = "MapData_SO", menuName = "Map/MapData")]
public class MapData_SO : ScriptableObject
{
    [SceneName] public string sceneName;
    [Header("地图信息")]
    public RectInt Map;

    public List<TileProperty> tileProperties;

    internal bool TryAdd(TileProperty property)
    {
        if (tileProperties.Contains(property))
        {
            return false;
        }
        tileProperties.Add(property);
        return true;
    }
}